package com.zxyankh.raft.dto;

import com.alibaba.fastjson.JSON;

/**
 * @author ankh
 * @since 31.10.2017
 */
public class Entry {
    private int index;
    private int term;
    private String command;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getTerm() {
        return term;
    }

    public void setTerm(int term) {
        this.term = term;
    }

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
